package com.chisheng.caa.pojo.dto;

import com.chisheng.caa.pojo.*;
import com.chisheng.caa.util.BeanUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@NoArgsConstructor
@ApiModel("导课设定信息传输类")
public class ImportCourseSettingDTO extends AbstractImportCourseSetting {

    public ImportCourseSettingDTO(ImportCourseSetting setting) {
        BeanUtil.copyProperties(setting, this, true);
    }

    @Override
    public void setLoadingStrategy(LoadingStrategy strategy) {
        this.loadingStrategy = strategy;
    }

    @Override
    public void setDuplicateStrategy(DuplicateStrategy strategy) {
        this.duplicateStrategy = strategy;
    }

    @Override
    public void setGrade(GradeDTO grade) {
        this.grade = new GradeDTO(grade);
    }

}
